home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-20 | 2.6 KB | 108 lines | [TEXT/ttxt] |
- As the summer intern for Apple's Developer Technical Support, my responsibility was
- to update the sample code snippets so they would compile with current headers and
- libraries. 68K and PPC projects were built with Metrowerks CodeWarrior 9 because
- it is more commonly used. The default values for these projects are as follows:
-
- • CodeWarrior project stationery was not used; each project was instead built
- from scratch. In some instances, the snippet's resource file had to be created
- from the existing .r file using MPW's rez.
-
- • Current libraries were added as needed or appropriate. For example, some 68K
- projects required either no libraries or only MacOSLib. All PPC projects required
- at least the Interface and MWCRuntime libraries.
-
- • Projects were compiled with all warnings on.
-
- • To help make the snippets more "forward-looking", a prefix file was added to
- each project:
-
- #define SystemSevenOrLater 1
- #define CGLUESUPPORTED 0
- #define OLDROUTINENAMES 0
- #define OLDROUTINELOCATIONS 0
-
- As a result of the prefix addition, most sample code required some kind of
- change. The most common changes involved routine names; for example, AddResMenu
- became AppendResMenu and GetIText became GetDialogItemText.
-
-
- Other updates to the sample code included:
-
- • Changes to header files, e.g. SysEqu.h became LowMem.h.
-
- • Some sample code compiled in MPW included the extern _DataInit, which produced
- a link error in CodeWarrior. This problem was solved by adding a conditional
- statement to the code so the extern would be ignored by CodeWarrior.
-
- • A Size flag was toggled on in the Preferences for sample code which was
- High Level Event Aware.
-
-
- The following snippets received the above maintanence:
- AddResMenu7.1
- Band Copying the Sequel
- BufCallback
- CalcCMask & CalcMask
- ColorPicker
- ColorizePict
- CopyBits vs. CopyMask
- CopybitsSpeedPalette
- CopyDeepMask
- CopyMask
- CustomGet unresolved alias
- CustomIcon
- Dialog popups
- DialogBits
- DirectPixelAccess
- DoubleBuffer
- DragWindowGrid
- DTSGroupies
- FindSerialPorts
- GetDragHiliteColor
- GetFInfo
- GetToolConfig
- GetVInfo
- GridWindowGrow
- HideMenuBar
- ic18 To cicn
- icon cache demo
- IconPlay
- IconUtilCheck
- kcapApp
- ListInDialog
- Menu 'cicn' Fun
- MeterTest
- Modeless Dialog Sample
- MultiPlay
- MyDeviceLoop
- NoResDialog
- Out of This GWorld
- Password
- PopUpMenuSelectWithCurFont
- PowerMacOr68K
- Prefs
- Process
- ProgressBars 1.0
- Record•ReceivePictInfo
- ReKeyTrans
- RequiredFinderColors
- Rotate Bitmap 90˚
- RubberBandit
- SampleRateAvail
- SeedCFill Example
- SettingUpStdFile
- SquareWave
- stdFilterHacking
- Test Gestalt
- VBLSnippet
- Vertest
- WaveTable Sounds
- WindowColors
- ZoomRecter
-
-
-
-
- Liesl Niemeier
- Developer Technical Support
-